package com.tom.demo.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tom.demo.common.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
* @author Admin
* @description 针对表【sys_menu(菜单信息表)】的数据库操作Mapper
* @createDate 2025-04-12 10:36:50
* @Entity generator.domain.SysMenu
*/
@Mapper
@DS(value = "master")
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 获取用户的权限标识
     * @param userId
     * @return
     */
    Set<String> findByPerms(@Param("userId")String userId);

    List<SysMenu> findByAll();

    List<SysMenu> findByUserId(@Param("userId")String userId);
}
